<template>
	<slot v-if="props.include ? props.include.includes(userStore.userInfo.role || '') : props.exclude ? !props.exclude.includes(userStore.userInfo.role || '') : true"></slot>
</template>

<script lang="ts" setup>
import { useUser } from "../stores/useUser";

const userStore = useUser();
const props = defineProps<{
	include?: string[];
	exclude?: string[];
}>();
</script>
